<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "ico_apply".
 *
 * @property string $id
 * @property string $email
 * @property string $name
 * @property string $project_name
 * @property string $mobile
 * @property string $website
 * @property string $desc
 */
class IcoApply extends \common\models\BaseActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'ico_apply';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['name','email','project_name','website','mobile','desc'], 'required'],
            [['id'], 'integer'],
            [['email', 'name'], 'string', 'max' => 100],
            [['project_name', 'website'], 'string', 'max' => 255],
            [['mobile'], 'string', 'max' => 11],
            [['desc'], 'string', 'max' => 1024],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'email' => '邮箱',
            'name' => '姓名',
            'project_name' => '项目名称',
            'mobile' => '联系电话',
            'website' => '网址',
            'desc' => '简介',
        ];
    }
}
